import http from "./http";

//获取预约进程信息
export const getCourseInfo = (status) => {
  return http.request({
    url: `/appointRecord/my-appoint?status=${status}`,
    method: "GET",
  });
};

// 取消预约
export const CancelCourse = (id) => {
  return http.request({
    url: `/appointRecord/cancel?id=${id}`,
    method: "GET",
  });
};

// 去评论
export const Review = (data, v2) => {
  return http.request({
    url: `/roomComment/add-room-comment`,
    method: "POST", 
    data: {
      roomId: data.v1,
      content: v2,
      recordId: data.v3,
    },
  });
};
